/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package teamRoom111;

import battlecode.common.*;
import com.sun.crypto.provider.RC2Cipher;
import static battlecode.common.GameConstants.*;
import java.util.Random;

/**
 *
 * @author tulam4am
 */
public class RobotPlayer implements Runnable {

    private final RobotController rc;

    public RobotPlayer(RobotController rcInit) {
        rc = rcInit;
    }

    public void run() {
        RobotType rt = rc.getRobotType();

        if ( rt.equals(RobotType.ARCHON) ) {
            (new ArchonPlayer(rc)).run();
        } else if ( rt.equals(RobotType.WOUT) ) {
            (new WoutPlayer(rc)).run();
        } else {
            while (true) {
                rc.yield();
            }
        }
    }
}
